VideoMetadata

@Stable
data class VideoMetadata(var title: String? = null, var artist: String? = null, var duration: Long? = null, var width: Int? = null, var height: Int? = null, var bitrate: Long? = null, var frameRate: Float? = null, var mimeType: String? = null, var audioChannels: Int? = null, var audioSampleRate: Int? = null)

Represents metadata information of a video file.

This data class holds various attributes related to the video content, including its title, artist, duration, dimensions, codec details, and audio properties. This metadata is typically used to provide detailed information about a video during playback or for insights in media management systems.

Constructors

Link copied to clipboard
constructor(title: String? = null, artist: String? = null, duration: Long? = null, width: Int? = null, height: Int? = null, bitrate: Long? = null, frameRate: Float? = null, mimeType: String? = null, audioChannels: Int? = null, audioSampleRate: Int? = null)

Properties

Link copied to clipboard
var artist: String?

The artist or creator of the video, if available.

Link copied to clipboard
var audioChannels: Int?

The number of audio channels in the video's audio track, if available.

Link copied to clipboard
var audioSampleRate: Int?

The sample rate of the audio track in the video, measured in Hz.

Link copied to clipboard
var bitrate: Long?

The average data rate of the video in bits per second, if known.

Link copied to clipboard
var duration: Long?

The length of the video in milliseconds, if known.

Link copied to clipboard
var frameRate: Float?

The frame rate of the video in frames per second, if available.

Link copied to clipboard
var height: Int?

The height of the video in pixels, if available.

Link copied to clipboard
var mimeType: String?

The MIME type of the video file, indicating the format used.

Link copied to clipboard
var title: String?

The title of the video, if available.

Link copied to clipboard
var width: Int?

The width of the video in pixels, if available.